/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ua.i.kotionokyurievna.jewelryweb.controllers;

/**
 *
 * @author kotionokyurievna
 */
public class AddUserController {

    private String login;
    private String password;
    private String passwordConfirm;
    private String name;
    private String surname;
    private String telephone;
    private String email;
    private String role;
    
    /**
     * Creates a new instance of AddUserController
     */
    public AddUserController() {
    }

    public AddUserController(String login, String password, 
            String passwordConfirm, String name, String surname, 
            String telephone, String email, String role) {
        this.login = login;
        this.password = password;
        this.passwordConfirm = passwordConfirm;
        this.name = name;
        this.surname = surname;
        this.telephone = telephone;
        this.email = email;
        this.role = role;
    }
    
    public String addUser(){
        if (password.equals(passwordConfirm)){
            return "done";
        }
        return "addUser";
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordConfirm() {
        return passwordConfirm;
    }

    public void setPasswordConfirm(String passwordConfirm) {
        this.passwordConfirm = passwordConfirm;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

}
